package com.itheima.loop;

public class ForDeadDemo8 {
    public static void main(String[] args) {
        //目标：死循环

      /*
       for (;   ; ) {//for的死循环写法，无判断条件

            System.out.println("-------for死循环演示--------");

        }


        while(true){
            System.out.println("----------while死循环----------");
        }
*/

        // 3、do-while循环
        do {
            System.out.println("Hello World3");
        }while (true);
    }
}
